package com.von.springbootnetty.config;

import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.logging.LoggingHandler;

/**
 * @author xiaosai
 * @version 1.0
 * @date 2022/3/17 14:21:54
 * @describe
 * @className
 */

public class ServerInitializer extends ChannelInitializer {
    @Override
    protected void initChannel(Channel channel) throws Exception {
        channel.pipeline().addLast("log",new LoggingHandler(LogLevel.INFO));
    }
}
